#!/bin/bash - 
#===============================================================================
#          FILE:  build.sh
#          # 
#          #         USAGE:  ./build.sh 
#          # 
#          #   DESCRIPTION:  
#          # 
#          #       VERSION:  ---
#          #       CREATED: 12/11/2012 11:01:12 AM CST
#          #        AUTHOR: Theophilus, wangtf418@gmail.com
#===============================================================================

set -o nounset                              # Treat unset variables as an error

export SERVER_ROOT=`pwd`
cd ../../../
BASEFRAME_ROOT=`pwd`
cd ${SERVER_ROOT}

if [ $# == 0 ]
then
	make
elif [ $# == 1 ]
then
	if [ $1 == 'clean' ]
	then
		make clean
	else
		echo "$0 or $0 clean"
	fi
fi

